<?php

use think\facade\Route;


//有种东西叫虚拟分组
//不需要鉴权的常规路由
Route::group(function () {
    //用户登录
    Route::get('test', 'index/index');
    Route::post('login', 'Login/login');
    Route::get('captcha', 'Login/captcha');

});
Route::post('subSignUp', 'index/subSignUp');
//上传文件
Route::post('upImage', 'index/upImage');
//需要鉴权的路由分组
Route::group(function () {
//
})->middleware(\app\api\middleware\Auth::class);
